package com.example.operation.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class DecSpecsDto {

    private Integer id;
    //商品id
    @ApiModelProperty(value = "商品id")
    @NotNull(message = "商品id不为空")
    private Integer waresId;
    //规格
    @ApiModelProperty(value = "规格")
    @NotBlank(message = "规格不为空")
    private String specs;
    //出售价
    @ApiModelProperty(value = "出售价")
    private double sellPrice;
    //原价
    @ApiModelProperty(value = "原价")
    private double costPrice;
    //库存
    @ApiModelProperty(value = "库存")
    @NotNull(message = "库存不为空")
    private Integer stock;
    //重量
    @ApiModelProperty(value = "重量")
    private double weight;
    //规格编码
    @ApiModelProperty(value = "规格编码")
    @NotBlank(message = "规格编码不为空")
    private String specsCode;
}
